package com.thghh.ch6.graph;

/**
 * 边
 * @author Zhikang.Peng
 * @version 1.0
 * @email thghh@qq.com
 * @date 2020/11/13 9:59
 */
public class Edge<T> {
    private IVertex<T> vertex;
    private double weight;

    public Edge(IVertex<T> vertex, double weight) {
        this.vertex = vertex;
        this.weight = weight;
    }

    public IVertex<T> getVertex() {
        return vertex;
    }

    public double getWeight() {
        return weight;
    }
}
